<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');?>
<div class="pad_10">
<form name="searchform" action="" method="get" >
<input type="hidden" value="epaper" name="m">
<input type="hidden" value="index" name="c">
<input type="hidden" value="list" name="a">
<input type="hidden" value="1596" name="menuid">
<table width="100%" cellspacing="0" class="search-form">
    <tbody>
		<tr>
		<td>
		<div class="explain-col">
			日期范围：
			<input name="start_date" type="date" value="<?php if(isset($_GET['start_date'])) {echo $_GET['start_date'];}?>" class="input-text" />
			-
			<input name="end_date" type="date" value="<?php if(isset($_GET['end_date'])) {echo $_GET['end_date'];}?>" class="input-text" />
			日期：
			<input name="date" type="input" value="<?php if(isset($_GET['date'])) {echo $_GET['date'];}?>" class="input-text" />
			<input type="submit" name="search" class="button" value="<?php echo L('search')?>" />
		</div>
		</td>
		</tr>
    </tbody>
</table>
</form>

<form name="myform" action="" method="post">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
	<tr>
	<th width="10%">ID</td>
	<th width="15%">发布日期</th>
	<th width="30%">资源地址</th>
	<th width="15%">上传时间</th>
	<th width="10%">操作</th>
	</tr>
        </thead>
    <tbody>
    

<?php
foreach($datas as $r) {
?>
<tr>
<td align="center"><?php echo $r['id']?></td>
<td align="center"><a href="?m=content&c=content&a=init&catid=7&steps=0&search=1&pc_hash=<?php echo $_GET['pc_hash'];?>&start_time=&end_time=&posids=&searchtype=0&keyword=<?php echo date('Ymd',strtotime($r['date']))?>&search=搜索&hide_left=none"><?php echo $r['date']?></a></td>
<td align="center"><?php echo $r['resource_dir']?></td>
<td align="center"><?php echo $r['created_at']?></td>
<td align="center">
	<a href="?m=epaper&c=preview&a=preview&pc_hash=<?php echo $_GET['pc_hash'];?>&date=<?php echo date('Ymd',strtotime($r['date']))?>">
	版面图修改</a>
	<a href="?m=content&c=content&a=init&catid=7&steps=0&search=1&pc_hash=<?php echo $_GET['pc_hash'];?>&start_time=&end_time=&posids=&searchtype=0&keyword=<?php echo date('Ymd',strtotime($r['date']))?>&search=搜索&hide_left=none">
	新闻列表</a>
	<a href='?m=epaper&c=index&a=analysis&id=<?php echo $r['id']?>'
	onClick="return confirm('确认解析<?php echo $r['date']?>?')">
	解析</a>
	<a href='?m=epaper&c=index&a=delete&id=<?php echo $r['id']?>'
	onClick="return confirm('<?php echo L('confirm', ['message' => new_addslashes($r['date'])])?>')">
	删除</a>
</td>
</tr>
<?php } ?>
	</tbody>
    </table>
	<div id="pages"><?php echo $pages;?></div>
</div>
</form>
</div>
</body>
</html>
